# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-24 16:32

a = (1, 2, 3)
b = ('a', 'b', 'c')
#zip就是一个类，需要加list
print(list(zip(a, b)))

#如何使用 enumerate
seasons = ['Spring', 'Summer', 'Fall', 'Winter']
list2=list(enumerate(seasons))
print(list2)
dict1 = {}
for i in list2:
    dict1[i[1]] = i[0]
print(dict1)